function handleViewProfile(){
	if($('#firstLoginForm').valid() == true){
		// Region auslesen
		var selectedRegion = $("#regionSelect").val();
		l(selectedRegion);
		
		steamID = $.cookie("login[steamID]");
		l(steamID);
		
		// Region eintragen
		$.ajax({
			url: 'ajax.php',
			type: "POST",
			dataType: 'json',
			data: {type:"user", mode: "addRegion", region:selectedRegion },
			success: function(result) {
				console.log("joinSingleQueue success");
				l(result.sql);
				if(result.status !== true){
					if(debug){
						$("#notification > p").html(result.status);
						$("#notification").slideDown();
					}
				}
				else{
					// Umleitung aufs Profil
						if(steamID > 0){
						window.location = "profile.php?steamID="+steamID;
					}
				}
			}
		});
	}
}

function handleFindMatch(){
	if($('#firstLoginForm').valid() == true){
		// Region auslesen
		var selectedRegion = $("#regionSelect").val();
		l(selectedRegion);
		
		// Region eintragen
		$.ajax({
			url: 'ajax.php',
			type: "POST",
			dataType: 'json',
			data: {type:"user", mode: "addRegion", region:selectedRegion },
			success: function(result) {
				console.log("joinSingleQueue success");
				l(result.sql);
				if(result.status !== true){
					if(debug){
						$("#notification > p").html(result.status);
						$("#notification").slideDown();
					}
				}
				else{
					// Umleitung aufs Find_Match.php
						window.location = "find_match.php";
				}
			}
		});
	}
}